package com.jy.rhin.model.body.guominshi;


import com.jy.rhin.infra.cda.EDataElement;
import com.jy.rhin.infra.cda.XPath;
import com.jy.rhin.infra.cda.XValid;
import com.jy.rhin.model.CodeObject;
import lombok.Data;

/**
 * @author WeiQ
 * @date 2023/2/9 17:25
 * 过敏史
 */
@Data
public class GuoMinShi {

    //药物过敏史标志
    @XPath(path = "/observation/value/@value")
    Boolean yaoWuGMSBZ;
    //过敏发生时间 yyyyMMdd
    @XPath(path = "/observation/entryRelationship/observation/effectiveTime/@value")
    String guoMinFSSJ;
    @XPath(path = "/observation/entryRelationship/observation/value"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE05_01_022_00))
    CodeObject guoMinYuan;

}
